<template>
  <div>
    <div>
      <h4>WAB评估结果</h4>
      <el-row type="flex" justify="space-between">
        <el-col>
            <span>自发言语</span>
        </el-col>
        <el-col :span="12">
          <span>信息量（评分） </span>
          <el-input v-model="pgForm.syzpglb_zs"></el-input>
        </el-col>
        <el-col :span="12">
          <span>信息量（折算） </span>
          <el-input v-model="pgForm.syzpglb_pf"></el-input>
        </el-col>
        <el-col :span="12">
          <span>流畅度、文法完整和错语（评分） </span>
          <el-input v-model="pgForm.syzpglb_lcd"></el-input>
        </el-col>
        <el-col :span="12">
          <span>流畅度、文法完整和错语（折算） </span>
          <el-input v-model="pgForm.syzpglb_lcdw"></el-input>
        </el-col>
      </el-row>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>理解</span>
        </el-col>
        <el-col :span="12">
          <span>是否题（评分） </span>
          <el-input v-model="pgForm.syzpglb_sf"></el-input>
        </el-col>
        <el-col :span="12">
          <span>是否题（折算） </span>
          <el-input v-model="pgForm.syzpglb_sft"></el-input>
        </el-col>
        <el-col :span="12">
          <span>听词辨认（评分） </span>
          <el-input v-model="pgForm.syzpglb_tc"></el-input>
        </el-col>
        <el-col :span="12">
          <span>听词辨认（折算） </span>
          <el-input v-model="pgForm.syzpglb_tcb"></el-input>
        </el-col>
        <el-col :span="12">
          <span>相继命令（评分） </span>
          <el-input v-model="pgForm.syzpglb_xj"></el-input>
        </el-col>
        <el-col :span="12">
          <span>相继命令（折算） </span>
          <el-input v-model="pgForm.syzpglb_xjml"></el-input>
        </el-col>
      </el-row>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>复述</span>
        </el-col>
        <el-col :span="12">
          <span>复述（评分） </span>
          <el-input v-model="pgForm.syzpglb_fs"></el-input>
        </el-col>
        <el-col :span="12">
          <span>复述（折算） </span>
          <el-input v-model="pgForm.syzpglb_fus"></el-input>
        </el-col>
      </el-row>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>命名</span>
        </el-col>
        <el-col :span="12">
          <span>物体命名（评分） </span>
          <el-input v-model="pgForm.syzpglb_wt"></el-input>
        </el-col>
        <el-col :span="12">
          <span>物体命名（折算） </span>
          <el-input v-model="pgForm.syzpglb_wtml"></el-input>
        </el-col>
        <el-col :span="12">
          <span>自发命名（评分） </span>
          <el-input v-model="pgForm.syzpglb_zf"></el-input>
        </el-col>
        <el-col :span="12">
          <span>自发命名（折算） </span>
          <el-input v-model="pgForm.syzpglb_zfml"></el-input>
        </el-col>
        <el-col :span="12">
          <span>完成句子（评分） </span>
          <el-input v-model="pgForm.syzpglb_wc"></el-input>
        </el-col>
        <el-col :span="12">
          <span>完成句子（折算） </span>
          <el-input v-model="pgForm.syzpglb_wcjz"></el-input>
        </el-col>
        <el-col :span="12">
          <span>反应性命名（评分） </span>
          <el-input v-model="pgForm.syzpglb_fyx"></el-input>
        </el-col>
        <el-col :span="12">
          <span>反应性命名(折算） </span>
          <el-input v-model="pgForm.syzpglb_fyxml"></el-input>
        </el-col>
      </el-row>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>总结失语商评分（AQ）</span>
        </el-col>
        <el-col :span="8">
          <span>失语商（AQ）= </span>
          <el-input v-model="syzpglb_aq" readonly></el-input>
        </el-col>
        <el-col :span="16">
          <el-input v-model="pgForm.syzpglb_input1" v-show="pgForm.syzpglb_aq>=0 & pgForm.syzpglb_aq<93.8" readonly style="width: 100%"></el-input>
          <el-input v-model="pgForm.syzpglb_input2" v-show="pgForm.syzpglb_aq>=93.8 & pgForm.syzpglb_aq<98.4" readonly style="width: 100%"></el-input>
          <el-input v-model="pgForm.syzpglb_input3" v-show="pgForm.syzpglb_aq>=98.4 & pgForm.syzpglb_aq<99.6" readonly style="width: 100%"></el-input>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "wab_evaluation_results",
  title: "WAB评估结果",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        syzpglb_zs: '',
        syzpglb_pf: '',
        syzpglb_lcd: '',
        syzpglb_lcdw: '',
        syzpglb_sf: '',
        syzpglb_sft: '',
        syzpglb_tc: '',
        syzpglb_tcb: '',
        syzpglb_xj: '',
        syzpglb_xjml: '',
        syzpglb_fs: '',
        syzpglb_fus: '',
        syzpglb_wt: '',
        syzpglb_wtml: '',
        syzpglb_zf: '',
        syzpglb_zfml: '',
        syzpglb_wc: '',
        syzpglb_wcjz: '',
        syzpglb_fyx: '',
        syzpglb_fyxml: '',
        syzpglb_input1: '失语',
        syzpglb_input2: '弥散性脑损伤、皮质下损伤',
        syzpglb_input3: '正常',
      }
    }
  },
  computed:{
    syzpglb_aq(){
      let aq= Number(this.pgForm.syzpglb_pf)+Number(this.pgForm.syzpglb_lcdw)+Number(this.pgForm.syzpglb_sft)+
              Number(this.pgForm.syzpglb_tcb)+Number(this.pgForm.syzpglb_xjml)+Number(this.pgForm.syzpglb_fus)+
              Number(this.pgForm.syzpglb_wtml)+Number(this.pgForm.syzpglb_zfml)+Number(this.pgForm.syzpglb_wcjz)+
              Number(this.pgForm.syzpglb_fyxml)
      return aq
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-input , .el-select{
  width: 35%;
}
</style>
